﻿using ModelLayer;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace WcfBetterPlace.WcfData
{
    [DataContract]
    public class ServiceData
    {
        public ServiceData()
        {
            SerStatus = "Ok";
            SerErrorDescription = "";
        }

        [DataMember]
        public String SerStatus;

        [DataMember]
        public String SerErrorDescription;
    }

    [DataContract]
    public class IntData : ServiceData
    {
        [DataMember]
        public int SerData;
    }

    [DataContract]
    public class PersonData : ServiceData
    {
        [DataMember]
        public Customer SerData;
    }

    [DataContract]
    public class PersonList : ServiceData
    {
        [DataMember]
        public List<Customer> SerData;
    }

    [DataContract]
    public class RouteData : ServiceData
    {
        [DataMember]
        public Route SerData;
    }

    [DataContract]
    public class StationData : ServiceData
    {
        [DataMember]
        public Station SerData;
    }

    [DataContract]
    public class StationList : ServiceData
    {
        [DataMember]
        public List<Station> SerData;
    }

    [DataContract]
    public class EdgeData : ServiceData
    {
        [DataMember]
        public Edge SerData;
    }

    [DataContract]
    public class EdgeList : ServiceData
    {
        [DataMember]
        public List<Edge> SerData;
    }

    [DataContract]
    public class CityData : ServiceData
    {
        [DataMember]
        public City SerData;
    }

    [DataContract]
    public class CityList : ServiceData
    {
        [DataMember]
        public List<City> SerData;
    }

    [DataContract]
    public class ReservationData : ServiceData
    {
        [DataMember]
        public Reservation SerData;
    }

    [DataContract]
    public class ReservationList : ServiceData
    {
        [DataMember]
        public List<Reservation> SerData;
    }
}